package com.xrit.sunnyday.service;

import com.xrit.sunnyday.entity.PageResult;
import com.xrit.sunnyday.entity.QueryPageBean;
import com.xrit.sunnyday.exception.SunnydayException;
import com.xrit.sunnyday.pojo.CheckItem;
import com.xrit.sunnyday.pojo.Permission;

public interface PermissionService {
    /**
     * 分页条件查询
     */
    PageResult findPage(QueryPageBean queryPageBean);

    /**
     * 添加权限
     */
    void add(Permission permission);

    /**
     * 删除权限
     */
    void deleteById(int id);

    /**
     * 通过id查询权限
     */
    Permission findById(int id);

    /**
     * 更新权限
     *
     */
    void update(Permission permission);
}
